﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AttendanceList.aspx.cs" Inherits="StudentManage.Web.Admin.Management.AttendanceManage.AttendanceList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register src="/Admin/PageHead/UC_Head.ascx" tagname="UC_Head" tagprefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <uc1:UC_Head ID="UC_Head1" runat="server" />
    <style type="text/css">
        <!--
            .Student_Left{width:200px; border:1px solid #999;}
            .Student_Left h2{width:200px; height:25px; line-height:25px; font-size:14px; text-align:center; border-bottom:1px solid #999; background-color:#e1e5ee;}
            .Student_LeftMain{width:200px; height:500px; overflow:auto;}
            .table_info td{padding:5px 0px;}
        -->
    </style>
    <script type="text/javascript">
        $(document).ready(function () {
            $("#AddAttend").click(function () {
                if ($("#HidSelectXH").val() == "") {
                    alert("请选择学生！");
                    return;
                }

                $("#txt_ProjectTitle").val("");
                $("#txt_Remuneration").val("");
                $("#HidIsEdit").val("0");
                $("#dialog-form").dialog('open');
            });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:HiddenField ID="HidScrollValue" runat="server" Value="0" />
    <asp:HiddenField ID="HidSelectXH" runat="server" />
    <asp:HiddenField ID="HidIsEdit" runat="server" />
    <asp:HiddenField ID="HidEditId" runat="server" />
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td width="17" height="29" valign="top" background="../images/mail_leftbg.gif">
                <img src="../../images/left-top-right.gif" width="17" height="29" />
            </td>
            <td height="29" valign="top" background="../images/content-bg.gif">
                <table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg"
                    id="table2">
                    <tr>
                        <td height="31">
                            <div class="titlebt">考勤管理</div>
                        </td>
                    </tr>
                </table>
            </td>
            <td width="16" valign="top" background="../images/mail_rightbg.gif">
                <img src="../../images/nav-right-bg.gif" width="16" height="29" />
            </td>
        </tr>
        <tr>
            <td height="71" valign="middle" background="../../images/mail_leftbg.gif">
                &nbsp;
            </td>
            <td valign="top" bgcolor="#F7F8F9">
                <table width="100%" height="138" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                        <td height="13" valign="top">
                            &nbsp;
                        </td>
                    </tr>
                    <tr>
                        <td valign="top">
                            <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td colspan="3" class="left_txt">
                                        当前位置：考情管理
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3" style="height:1px;padding-top:10px; border-top:1px solid #ccc;"></td>
                                </tr>
                                <tr>
                                    <td valign="top" align="left" style="width:202px;">
                                        <div class="Student_Left">
                                            <h2>班级列表</h2>
                                            <div class="Student_LeftMain TV_List_Main">
                                                <asp:TreeView ID="TV_Student" runat="server" CssClass="TV_List_A" 
                                                    onselectednodechanged="TV_Student_SelectedNodeChanged" SkipLinkText="">
                                                    <SelectedNodeStyle BackColor="#FFCC00" />
                                                </asp:TreeView>
                                            </div>
                                        </div>
                                    </td>
                                    <td style="width:10px;"></td>
                                    <td valign="top">
                                        <div style="height:310px;">
                                        <span style=" height:25px; line-height:25px; clear:both; font-weight:600;">注:请点击“查看考勤”按钮来查看某学生的考勤信息</span>
                                        <table width="100%" border="1" cellspacing="0" cellpadding="0" class="table120" style="border-collapse:collapse;">
                                            <thead class="nowtable">
                                                <tr>
                                                    <th style="height:25px; line-height:25px;">
                                                        学号
                                                    </th>
                                                    <th>
                                                        姓名
                                                    </th>
                                                    <th>
                                                        性别
                                                    </th>
                                                    <th>
                                                        专业
                                                    </th>
                                                    <th style="width:60px;">查看考勤</th>
                                                </tr>
                                            </thead>
                                            <tbody id="UserTbody">
                                                <asp:Repeater ID="Rep_DataList" runat="server" 
                                                    onitemcommand="Rep_DataList_ItemCommand">
                                                    <ItemTemplate>
                                                        <tr>
                                                            <td><%#Eval("XH")%></td>
                                                            <td><%#Eval("XM")%></td>
                                                            <td><%#Eval("XB")%></td>
                                                            <td><%#Eval("ZYMC")%></td>
                                                            <td><asp:Button ID="Btn_RepEdit" runat="server" CssClass="RepBtnView" CommandName="View" CommandArgument=<%#Eval("XH")%> /></td>
                                                        </tr>
                                                    </ItemTemplate>
                                                </asp:Repeater>
                                            </tbody>
                                        </table>
                                        <webdiyer:aspnetpager id="AspNetPager1" runat="server" pagesize="10" 
                                            firstpagetext="首页" lastpagetext="尾页" nextpagetext="下一页" prevpagetext="上一页" 
                                            showpageindex="true" onpagechanged="AspNetPager1_PageChanged">
                                         </webdiyer:aspnetpager>
                                         </div>
                                         <div>
                                            <div style="width:100%;height:35px; line-height:35px; text-align:right;" node-type="header_table">
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td align="left" style="color:Red;font-weight:600;">学生：<asp:Label ID="Lab_SelectName" runat="server"></asp:Label></td>
                                                    <td align="right"><input id="AddAttend" type="button" value="添加考勤"/></td>
                                                </tr>
                                            </table>
                                            </div>
                                            <table width="100%" border="1" cellspacing="0" cellpadding="0" class="table120" style="border-collapse:collapse;">
                                            <thead class="nowtable">
                                                <tr>
                                                    <th style="height:25px; line-height:25px;">
                                                        姓名
                                                    </th>
                                                    <th>
                                                        考勤项目
                                                    </th>
                                                    <th>
                                                        考勤时间
                                                    </th>
                                                    <th>
                                                        酬劳
                                                    </th>
                                                    <th style="width:60px;">修改</th>
                                                    <th style="width:60px;">删除</th>
                                                </tr>
                                            </thead>
                                            <tbody id="UserTbody">
                                                <asp:Repeater ID="Rep_Work" runat="server" 
                                                    onitemcommand="Rep_Work_ItemCommand">
                                                    <ItemTemplate>
                                                        <tr>
                                                            <td><%#Eval("UserName")%></td>
                                                            <td><%#Eval("ProjectTitle")%></td>
                                                            <td><%#Eval("Years")%>年<%#Eval("Month")%>月</td>
                                                            <td>￥：<%#GetRemun(Eval("Remuneration").ToString())%>元</td>
                                                            <td><asp:Button ID="Btn_RepEdit" runat="server" CssClass="RepBtnEdit" CommandName="Edit" CommandArgument=<%#Eval("id")%> /></td>
                                                            <td><asp:Button ID="Btn_RepDel" runat="server" OnClientClick="return confirm('确定删除?');" CssClass="RepBtnDel" CommandName="Del" CommandArgument=<%#Eval("id")%> /></td>
                                                        </tr>
                                                    </ItemTemplate>
                                                </asp:Repeater>
                                            </tbody>
                                        </table>
                                        <webdiyer:aspnetpager id="AspNetPager2" runat="server" pagesize="10" 
                                            firstpagetext="首页" lastpagetext="尾页" nextpagetext="下一页" prevpagetext="上一页" 
                                            showpageindex="true" onpagechanged="AspNetPager2_PageChanged">
                                         </webdiyer:aspnetpager>
                                         </div>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
            <td background="../../images/mail_rightbg.gif">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td valign="middle" background="../images/mail_leftbg.gif">
                <img src="../../images/buttom_left2.gif" width="17" height="17" />
            </td>
            <td height="17" valign="top" background="../../images/buttom_bgs.gif">
                <img src="../../images/buttom_bgs.gif" width="17" height="17" />
            </td>
            <td background="../images/mail_rightbg.gif">
                <img src="../../images/buttom_right2.gif" width="16" height="17" />
            </td>
        </tr>
    </table>

    <div class="sp-dialog-box" id="dialog-form" style="display: none;" title="考勤信息">
        <div style="width: 500px;">
            <table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-collapse: collapse;">
                <tr>
                    <td align="right" style="width: 80px; font-weight: 600;">
                        考勤项目：
                    </td>
                    <td>
                        <asp:TextBox ID="txt_ProjectTitle" runat="server"></asp:TextBox>
                    </td>
                    <td align="right" style="width: 80px; font-weight: 600;">
                        考勤时间：
                    </td>
                    <td>
                        <asp:DropDownList ID="Drop_Years" runat="server">
                            <asp:ListItem Value="2010" Text="2010"></asp:ListItem>
                            <asp:ListItem Value="2011" Text="2011"></asp:ListItem>
                            <asp:ListItem Value="2012" Text="2012"></asp:ListItem>
                            <asp:ListItem Value="2013" Text="2013"></asp:ListItem>
                            <asp:ListItem Value="2014" Text="2014"></asp:ListItem>
                            <asp:ListItem Value="2015" Text="2015"></asp:ListItem>
                            <asp:ListItem Value="2016" Text="2016"></asp:ListItem>
                            <asp:ListItem Value="2017" Text="2017"></asp:ListItem>
                            <asp:ListItem Value="2018" Text="2018"></asp:ListItem>
                            <asp:ListItem Value="2019" Text="2019"></asp:ListItem>
                        </asp:DropDownList>年
                        <asp:DropDownList ID="Drop_Month" runat="server">
                            <asp:ListItem Value="1" Text="1"></asp:ListItem>
                            <asp:ListItem Value="2" Text="2"></asp:ListItem>
                            <asp:ListItem Value="3" Text="3"></asp:ListItem>
                            <asp:ListItem Value="4" Text="4"></asp:ListItem>
                            <asp:ListItem Value="5" Text="5"></asp:ListItem>
                            <asp:ListItem Value="6" Text="6"></asp:ListItem>
                            <asp:ListItem Value="7" Text="7"></asp:ListItem>
                            <asp:ListItem Value="8" Text="8"></asp:ListItem>
                            <asp:ListItem Value="9" Text="9"></asp:ListItem>
                            <asp:ListItem Value="10" Text="10"></asp:ListItem>
                            <asp:ListItem Value="11" Text="11"></asp:ListItem>
                            <asp:ListItem Value="12" Text="12"></asp:ListItem>
                        </asp:DropDownList>月
                    </td>
                </tr>
                <tr>
                    <td align="right" style="font-weight: 600;">酬劳：</td>
                    <td colspan="3"><asp:TextBox ID="txt_Remuneration" runat="server"></asp:TextBox></td>
                </tr>
            </table>
            <asp:Button Text="提交" runat="server" Style="display: none;" CssClass="die" ID="btPost"
                OnClick="btPost_Click" />
        </div>
    </div>
    <div id="dialog_target">
    </div>
    </form>
</body>
</html>